﻿using NLog;
using Quartz;
using System;
using System.Threading.Tasks;
using MT.Job.Core.Services;

namespace MT.Job.Core
{
    public class MyJob1 : IJob
    {
        private readonly Logger _logger = LogManager.GetCurrentClassLogger();
        private readonly IUserService _service;
        public MyJob1(IUserService service)
        {
            this._service = service;
        }

        public async Task Execute(IJobExecutionContext context)
        {
            _logger.Error("Start MyJob1");
            var dto = _service.GetUserDto();

            Console.WriteLine("go");
            await Task.CompletedTask;
        }
    }
}
